#ifndef  __GPRS_H__
#define  __GPRS_H__

#include "apphead.h"

typedef struct
{
  int Send;
  int Recv;
  int Sum;
}GPRSDataUseDef;

typedef enum
{
  GPRS_Net_Connect = 1,
  GPRS_Net_Break,
  GPRS_Send_Http,
  GPRS_Init,
  GPRS_CSQ,
  GPRS_Close,
}GPRSCmdDef;

typedef struct 
{
  int cmd;
  unsigned char *sendbuf;
  unsigned char *recvbuf;
  sem_t   *finsh;		
}GPRSMailDef;

int gprs_sdata_mail(GPRSMailDef *mail);
void gprs_init_process(void);
void gprs_thread_process(void);

#endif

